import request from '@/utils/request'

// 查询资源中心列表
export function listResourceInfo(query) {
  return request({
    url: '/business/resourceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询资源中心所有列表
export function listAllResourceInfo(query) {
  return request({
    url: '/business/resourceInfo/listAll',
    method: 'get',
    params: query
  })
}

// 查询资源中心详细
export function getResourceInfo(id) {
  return request({
    url: '/business/resourceInfo/getInfo/' + id,
    method: 'get'
  })
}

// 新增资源中心
export function addResourceInfo(data) {
  return request({
    url: '/business/resourceInfo/add',
    method: 'post',
    data: data
  })
}

// 修改资源中心
export function updateResourceInfo(data) {
  return request({
    url: '/business/resourceInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除资源中心
export function delResourceInfo(id) {
  return request({
    url: '/business/resourceInfo/remove/' + id,
    method: 'get'
  })
}
